#ifndef __IMAGE_H__
#define __IMAGE_H__

#include "common.h"

class Image{
	private:
		int _w;
		int _h;
		int *img;
		
	public:
		Image(int w = 10,int h = 10);
		~Image(void);
		
		inline int& w(void) {return this->_w;}
		inline int& h(void) {return this->_h;}
		inline int& getPixel(int x,int y) {return this->img[_w*y + x];}
		inline int& getPixel(int index) {return this->img[index];}
		
		bool existPixel(int x, int y);
		void create(int w,int h);
		void print(void);
	
};

#endif
